﻿using Inovout.Gui.Wpf.ViewModels;
using Inovout.Gui.Wpf;

namespace Inovout.Portal.Desktop.Workbenchs
{
    public class ActiveWorkspaceCommand : BaseCommand
    {
        private MainWorkbenchViewModel workbenchViewModel;
        private DomainViewModel modelViewModel;
        public ActiveWorkspaceCommand(MainWorkbenchViewModel workbenchViewModel
            , DomainViewModel modelViewModel)
        {
            this.workbenchViewModel = workbenchViewModel;
            this.modelViewModel = modelViewModel;
        }
        public override void Execute(object parameter)
        {
            workbenchViewModel.ActiveWorkspace(modelViewModel);
        }
    }
}
